<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page import="com.pmsco.pms.core.constant.PmsConstant"%>
<%@ page import="com.pmsco.pms.util.BundleUtil"%>
<%@ include file="/WEB-INF/import/tagLibs.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" media="screen" href="resources/css/pmssearch.css" />
	<script>
	    $(function() {
	    	var h = $("#drugInfoTable").height() - 230;
	    	$("#tabs").tabs();
	        $("#tabs").css('height', h);
	        $("button").button();
	    });
    </script>
</head>
<body class="pmsMainBody">
	<table class="pmsMainTable">
		<tr class="pmsMainTableWrapperTd">
			<td>
			    <table class="tableForm pmsFullTable" cellpadding="0" cellspacing="0" id="drugInfoTable">
			    	<input type="hidden" id="id" name="id" value="${command.id}"/>
			    	<c:if test="${errorMessage != null}">
			    		<tr><td colspan="2" class="tableFormLabelRequired"><spring:message code="${errorMessage}"/></td></tr>	
			    	</c:if>
			    	<tr>
			    		<td>
			    			<table class="tableForm pmsFullWidthTable" cellpadding="0" cellspacing="0">
			    				<tr>
			    					<td colspan="2" class="drugName" align="center"><span>${command.name}</span></td>
			    				</tr>
			    				<tr>
			    					<td valign="top">
			    						<table>
			    							<tr>
												<td class="tableFormLabel"><spring:message code="medicine.enName"/>:</td>
												<td class="drugInfo drugTextInfo"><span>${command.enName}</span></td>
											</tr>
											<tr>
												<td class="tableFormLabel" valign="top"><spring:message code="medicine.directions"/>:</td>
												<td class="drugInfo drugTextInfo" valign="top"><span>${command.directions}</span></td>
											</tr>
											<tr>
												<td class="tableFormLabel" valign="top"><spring:message code="medicine.visa"/>:</td>
												<td class="drugInfo drugTextInfo" valign="top"><span>${command.visa}</span></td>
											</tr>
			    						</table>
			    					</td>
			    					<td class="drugImageInfo">&nbsp;</td>
			    				</tr>
			    			</table>
			    		</td>
		    		</tr>
		    		<tr>
			    		<td height="100%">
			    			<div id="tabs">
							    <ul>
							        <li><a href="#tabs-1">Drug Info</a></li>
							        <li><a href="#tabs-2">Drug Store</a></li>
							    </ul>
							    <div id="tabs-1" style="height: 100%">
							        <table>
							        	<tr>
											<td class="tableFormLabel"><spring:message code="medicine.dispenseType"/>:</td>
											<td class="drugInfo drugTextInfo"><span>${command.dispenseType}</span></td>
										</tr>	
										<tr>
											<td class="tableFormLabel"><spring:message code="medicine.distributor"/>:</td>
											<td class="drugInfo drugTextInfo"><span>${command.distributor}</span></td>
										</tr>
										<tr>
											<td class="tableFormLabel"><spring:message code="medicine.ingredient"/>:</td>
											<td class="drugInfo drugTextInfo"><span>${command.ingredient}</span></td>
										</tr>
										<tr>
											<td class="tableFormLabel"><spring:message code="medicine.manufacturer"/>:</td>
											<td class="drugInfo drugTextInfo"><span>${command.manufacturer}</span></td>
										</tr>
										<tr>
											<td class="tableFormLabel"><spring:message code="medicine.importer"/>:</td>
											<td class="drugInfo drugTextInfo"><span>${command.importer}</span></td>
										</tr>
							        </table>
							    </div>
							    <div id="tabs-2">
							    	<table class="tableForm" width="60%" align="left">
										<tr>
											<td>
												Abc
											</td>
										</tr>
							    	</table>
							    </div>
							</div>
			    		</td>
			    	</tr>
		    	</table>
	    	</td>
    	</tr>
   	</table>
</body>
</html>